<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
        <title>Document</title>
        <script src = 'jquery-1.10.1.min.js'></script>
        <script>
            /* 
                serialize()   将我们表单中的数据拼接成querystring（查询字符串） name1=value1&name2=value2
                search      ?name1=value1&name2=value2
                querystring  name1=value1&name2=value2

                serializeArray()  将表单数据拼接成数组

             */
             $(function(){
                //  alert($("input").serialize()); //a=1&b=2&c=3

                console.log($("input").serializeArray())
             })
        </script>
    </head>
    <body>
        <input type="text" name = 'a' value = '1'/>
        <input type="text" name = 'b' value = '2'/>
        <input type="text" name = 'c' value = '3'/>
    </body>
</html>